﻿// -----------------------------------------------------------------------
// <copyright company="www.3WayWebdesign.de">
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
// 
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// </copyright>
// 
// <author>Michael Morbach</author>
// <email>Michael@3waywebdesign.de</email>
// <web>http://www.3waywebdesign.de</web>
// ----------------------------------------------------------------------

using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;

namespace Tww.MAF.MAFControlSuite.Controls.Menus.NavigationBar
{
    public class NavigationBarItem : TabItem
    {
        #region  - Felder (öffentlich) -

        /// <summary>
        /// The accent color property
        /// </summary>
        public static readonly DependencyProperty AccentColorProperty =
            DependencyProperty.Register("AccentColor", typeof(Color), typeof(NavigationBarItem),
                new UIPropertyMetadata(null));

        /// <summary>
        /// Define a Cornerradius for this Button
        /// </summary>
        public static readonly DependencyProperty CornerRadiusProperty =
            DependencyProperty.Register("CornerRadius", typeof(CornerRadius), typeof(NavigationBarItem),
                new UIPropertyMetadata(null));

        /// <summary>
        /// The highlight color property
        /// </summary>
        public static readonly DependencyProperty HighlightEffectColorProperty =
            DependencyProperty.Register("HighlightEffectColor", typeof(Color), typeof(NavigationBarItem),
                new UIPropertyMetadata(null));

        /// <summary>
        /// The highlight effect visibility property
        /// </summary>
        public static readonly DependencyProperty HighlightEffectVisibilityProperty =
            DependencyProperty.Register("HighlightEffectVisibility", typeof(Visibility), typeof(NavigationBarItem),
                new UIPropertyMetadata(null));

        #endregion

        #region  - Konstruktoren -

        /// <summary>
        /// Initializes the <see cref="NavigationBarItem"/> class.
        /// </summary>
        static NavigationBarItem()
        {
            DefaultStyleKeyProperty.OverrideMetadata(typeof (NavigationBarItem),
                new FrameworkPropertyMetadata(typeof (NavigationBarItem)));
        }

        #endregion

        #region  - Indexer und Eigenschaften (öffentlich) -

        /// <summary>
        ///  Define a Cornerradius for this Button
        /// </summary>
        /// <value>
        /// The corner radius.
        /// </value>
        public CornerRadius CornerRadius
        {
            get { return (CornerRadius) GetValue(CornerRadiusProperty); }
            set { SetValue(CornerRadiusProperty, value); }
        }

        /// <summary>
        /// Gets or sets the color of the highlight effect.
        /// </summary>
        /// <value>
        /// The color of the highlight effect.
        /// </value>
        public Color HighlightEffectColor
        {
            get { return (Color) GetValue(HighlightEffectColorProperty); }
            set { SetValue(HighlightEffectColorProperty, value); }
        }


        /// <summary>
        /// Gets or sets the color of the accent.
        /// </summary>
        /// <value>
        /// The color of the accent.
        /// </value>
        public Color AccentColor
        {
            get { return (Color) GetValue(AccentColorProperty); }
            set { SetValue(AccentColorProperty, value); }
        }


        /// <summary>
        /// Gets or sets the highlight effect visibility.
        /// </summary>
        /// <value>
        /// The highlight effect visibility.
        /// </value>
        public Visibility HighlightEffectVisibility
        {
            get { return (Visibility) GetValue(HighlightEffectVisibilityProperty); }
            set { SetValue(HighlightEffectVisibilityProperty, value); }
        }

        #endregion
    }
}